package com.xinghen.web.controller;

import com.xinghen.dto.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xinghen
 * @ClassName: UserController
 * @Package: com.xinghen.web.controller
 * @Description User Controller
 * @create 2018/04/08 20:38
 */
@RestController("/user")
public class UserController {

    @GetMapping
    public List<User> query() {
        List<User> list = new ArrayList<>();
        list.add(new User("张三", "123456"));
        list.add(new User("李四", "123456"));
        list.add(new User("王五", "123456"));
        return list;
    }

}
